package cl.zeke.cursos.jsf2spring3jpa2.vista.controllers;

import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author eduardo
 */
@Controller
@RequestMapping("/generarPdf")
public class HolaMundoController {
    
    @RequestMapping(value = "/holamundo" , method = RequestMethod.GET)
    public @ResponseBody String  saludar(HttpServletRequest request,
            @RequestParam("idProyecto") Integer idProyecto) {
        
        System.out.println("Entro Controlador");
        
        request.setAttribute("nameUsr", "lalala");
        
        return "taller.jspx";
    }
    
}
